/*
 * @Description:角色接口
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-01 11:26:03
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-09 16:44:03
 */
import request from '@/utils/request'

export function getAllrole (type) {
  return request({
    url: '/api/getAllrole',
    method: 'get'
  })
}

export function findPageRole (params) {
  return request({
    url: '/api/findPageRole',
    method: 'get',
    params
  })
}

export function getAllUser () {
  return request({
    url: '/api/getAllUser',
    method: 'get'
  })
}

export function updateRole (data) {
  return request({
    url: '/api/updateRole',
    method: 'post',
    data
  })
}

export function addRole (data) {
  return request({
    url: '/api/addRole',
    method: 'post',
    data
  })
}
